Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable experiment types that do parameter updates if there are no params to update #9007

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JHolba
Copy link
Contributor

@JHolba JHolba commented Oct 21, 2024

If all parameters have UPDATE:FALSE set, then we should not let the user select any mode that does parameter updates.

Issue
Resolves #8970

Approach
Added a check to see if any parameter has update set to true. If it fails we disable experiment types that do parameter updates.

  • PR title captures the intent of the changes, and is fitting for release notes.
  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Make sure unit tests pass locally after every commit (git rebase -i main --exec 'pytest tests/ert/unit_tests -n logical -m "not integration_test"')

When applicable

  • When there are user facing changes: Updated documentation
  • New behavior or changes to existing untested code: Ensured that unit tests are added (See Ground Rules).
  • Large PR: Prepare changes in small commits for more convenient review
  • Bug fix: Add regression test for the bug
  • Bug fix: Create Backport PR to latest release

If all parameters have UPDATE:FALSE set, then we should not let the user
select any mode that does parameter updates.
@JHolba JHolba self-assigned this Oct 21, 2024
@JHolba JHolba added release-notes:misc Automatically categorise as miscellaneous change in release notes release-notes:improvement Automatically categorise as improvement in release notes and removed release-notes:misc Automatically categorise as miscellaneous change in release notes labels Oct 21, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.00%. Comparing base (ebc4d03) to head (6b84333).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9007      +/-   ##
==========================================
- Coverage   91.00%   91.00%   -0.01%     
==========================================
  Files         349      349              
  Lines       21641    21646       +5     
==========================================
+ Hits        19695    19699       +4     
- Misses       1946     1947       +1     
Flag Coverage Δ
cli-tests 39.20% <66.66%> (+<0.01%) ⬆️
gui-tests 72.87% <66.66%> (-0.01%) ⬇️
performance-tests 49.69% <33.33%> (-0.03%) ⬇️
unit-tests 79.70% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JHolba JHolba marked this pull request as ready for review October 21, 2024 13:48
@xjules
Copy link
Contributor

xjules commented Oct 22, 2024

I think it would be nice to write a test for this. At least the ErtCliError.

Copy link
Contributor

@xjules xjules left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good, but missing a test. Cli part should be easy to test, GUI part should be doable also I guess :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:improvement Automatically categorise as improvement in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deactivate parameter update experiment types when GEN_KW is disabled using UPDATE:FALSE
3 participants